home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_h.lzh / exec / nodes.h < prev    next >
C/C++ Source or Header  |  1991-03-14  |  2KB  |  70 lines

  1. #ifndef    EXEC_NODES_H
  2. #define    EXEC_NODES_H
  3. /*
  4. **    $Filename: exec/nodes.h $
  5. **    $Release: 2.04 $
  6. **    $Revision: 36.11 $
  7. **    $Date: 91/01/09 $
  8. **
  9. **    Nodes & Node type identifiers.
  10. **
  11. **    (C) Copyright 1985,1986,1987,1988,1989 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include "exec/types.h"
  17. #endif /* EXEC_TYPES_H */
  18.  
  19.  
  20. /*
  21.  *  List Node Structure.  Each member in a list starts with a Node
  22.  */
  23.  
  24. struct Node {
  25.     struct  Node *ln_Succ;    /* Pointer to next (successor) */
  26.     struct  Node *ln_Pred;    /* Pointer to previous (predecessor) */
  27.     UBYTE   ln_Type;
  28.     BYTE    ln_Pri;        /* Priority, for sorting */
  29.     char    *ln_Name;        /* ID string, null terminated */
  30. };    /* Note: word aligned */
  31.  
  32. /* minimal node -- no type checking possible */
  33. struct MinNode {
  34.     struct MinNode *mln_Succ;
  35.     struct MinNode *mln_Pred;
  36. };
  37.  
  38.  
  39. /*
  40. ** Note: Newly initialized IORequests, and software interrupt structures
  41. ** used with Cause(), should have type NT_UNKNOWN.  The OS will assign a type
  42. ** when they are first used.
  43. */
  44. /*----- Node Types for LN_TYPE -----*/
  45. #define NT_UNKNOWN    0
  46. #define NT_TASK        1    /* Exec task */
  47. #define NT_INTERRUPT    2
  48. #define NT_DEVICE    3
  49. #define NT_MSGPORT    4
  50. #define NT_MESSAGE    5    /* Indicates message currently pending */
  51. #define NT_FREEMSG    6
  52. #define NT_REPLYMSG    7    /* Message has been replied */
  53. #define NT_RESOURCE    8
  54. #define NT_LIBRARY    9
  55. #define NT_MEMORY    10
  56. #define NT_SOFTINT    11    /* Internal flag used by SoftInits */
  57. #define NT_FONT        12
  58. #define NT_PROCESS    13    /* AmigaDOS Process */
  59. #define NT_SEMAPHORE    14
  60. #define NT_SIGNALSEM    15    /* signal semaphores */
  61. #define NT_BOOTNODE    16
  62. #define NT_KICKMEM    17
  63. #define NT_GRAPHICS    18
  64. #define NT_DEATHMESSAGE    19
  65.  
  66. #define NT_USER        254    /* User node types work down from here */
  67. #define NT_EXTENDED    255
  68.  
  69. #endif    /* EXEC_NODES_H */
  70.